import 'package:bookshelf/generated/json/base/json_convert_content.dart';
import 'package:bookshelf/entity/book_entity.dart';

BookEntity $BookEntityFromJson(Map<String, dynamic> json) {
	final BookEntity bookEntity = BookEntity();
	final String? searchNo = jsonConvert.convert<String>(json['searchNo']);
	if (searchNo != null) {
		bookEntity.searchNo = searchNo;
	}
	final String? isbn = jsonConvert.convert<String>(json['isbn']);
	if (isbn != null) {
		bookEntity.isbn = isbn;
	}
	final String? mainTitle = jsonConvert.convert<String>(json['main_title']);
	if (mainTitle != null) {
		bookEntity.mainTitle = mainTitle;
	}
	final String? author = jsonConvert.convert<String>(json['author']);
	if (author != null) {
		bookEntity.author = author;
	}
	final int? recommend_score = jsonConvert.convert<int>(json['recommend_score']);
	if (recommend_score != null) {
		bookEntity.recommend_score = recommend_score;
	}
	final String? chiClassify = jsonConvert.convert<String>(json['chiClassify']);
	if (chiClassify != null) {
		bookEntity.chiClassify = chiClassify;
	}
	final String? subject = jsonConvert.convert<String>(json['subject']);
	if (subject != null) {
		bookEntity.subject = subject;
	}
	final String? publisher = jsonConvert.convert<String>(json['publisher']);
	if (publisher != null) {
		bookEntity.publisher = publisher;
	}
	final dynamic? publishAddr = jsonConvert.convert<dynamic>(json['publishAddr']);
	if (publishAddr != null) {
		bookEntity.publishAddr = publishAddr;
	}
	final String? publishDate = jsonConvert.convert<String>(json['publishDate']);
	if (publishDate != null) {
		bookEntity.publishDate = publishDate;
	}
	final double? price = jsonConvert.convert<double>(json['price']);
	if (price != null) {
		bookEntity.price = price;
	}
	final String? pages = jsonConvert.convert<String>(json['pages']);
	if (pages != null) {
		bookEntity.pages = pages;
	}
	final dynamic? summary = jsonConvert.convert<dynamic>(json['summary']);
	if (summary != null) {
		bookEntity.summary = summary;
	}
	final String? place = jsonConvert.convert<String>(json['place']);
	if (place != null) {
		bookEntity.place = place;
	}
	final String? placeName = jsonConvert.convert<String>(json['placeName']);
	if (placeName != null) {
		bookEntity.placeName = placeName;
	}
	final String? placeFirst = jsonConvert.convert<String>(json['placeFirst']);
	if (placeFirst != null) {
		bookEntity.placeFirst = placeFirst;
	}
	final String? firstPlaceName = jsonConvert.convert<String>(json['firstPlaceName']);
	if (firstPlaceName != null) {
		bookEntity.firstPlaceName = firstPlaceName;
	}
	final String? uid = jsonConvert.convert<String>(json['uid']);
	if (uid != null) {
		bookEntity.uid = uid;
	}

	final String? no = jsonConvert.convert<String>(json['no']);
	if (no != null) {
		bookEntity.no = no;
	}

	final String? stateValue = jsonConvert.convert<String>(json['stateValue']);
	if (stateValue != null) {
		bookEntity.stateValue = stateValue;
	}

	final dynamic? rfid = jsonConvert.convert<dynamic>(json['rfid']);
	if (rfid != null) {
		bookEntity.rfid = rfid;
	}

	final String? title = jsonConvert.convert<String>(json['title']);
	if (title != null) {
		bookEntity.title = title;
	}
	final String? cover = jsonConvert.convert<String>(json['cover']);
	if (cover != null) {
		bookEntity.cover = cover;
	}
	final String? book_id = jsonConvert.convert<String>(json['book_id']);
	if (book_id != null) {
		bookEntity.book_id = book_id;
	}
	final String? search_no = jsonConvert.convert<String>(json['search_no']);
	if (search_no != null) {
		bookEntity.search_no = search_no;
	}
	final int? score = jsonConvert.convert<int>(json['score']);
	if (score != null) {
		bookEntity.score = score;
	}
	final int? status = jsonConvert.convert<int>(json['status']);
	if (status != null) {
		bookEntity.status = status;
	}
	return bookEntity;
}

Map<String, dynamic> $BookEntityToJson(BookEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['searchNo'] = entity.searchNo;
	data['recommend_score'] = entity.recommend_score;
	data['isbn'] = entity.isbn;
	data['main_title'] = entity.mainTitle;
	data['author'] = entity.author;
	data['chiClassify'] = entity.chiClassify;
	data['subject'] = entity.subject;
	data['publisher'] = entity.publisher;
	data['publishAddr'] = entity.publishAddr;
	data['publishDate'] = entity.publishDate;
	data['price'] = entity.price;
	data['pages'] = entity.pages;
	data['summary'] = entity.summary;
	data['place'] = entity.place;
	data['placeName'] = entity.placeName;
	data['placeFirst'] = entity.placeFirst;
	data['firstPlaceName'] = entity.firstPlaceName;
	data['uid'] = entity.uid;
	data['no'] = entity.no;
	data['stateValue'] = entity.stateValue;
	data['rfid'] = entity.rfid;
	data['title'] = entity.title;
	data['cover'] = entity.cover;
	data['book_id'] = entity.book_id;
	data['search_no'] = entity.search_no;
	data['score'] = entity.score;
	data['status'] = entity.status;
	return data;
}